package com.example.comment_oa.pojos;


import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * 
 * @TableName job_record
 */
@Data
@TableName(value ="job_record")
public class JobRecord implements Serializable {
    /**
     * 岗位申请记录id
     */
    @TableId
    private Integer recordId;

    /**
     * 岗位申请id外键
     */
    private Integer jobId;

    /**
     * 审批时间/发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "record_time")
    private Timestamp recordTime;

    /**
     * 审批人id/发布人id
     */
    private Integer empId;

    /**
     * 审批结果
     */
    private Integer recordResult;

    /**
     * 失败原因
     */
    private String recordCause;

    /**
     * 状态
     */
    private Integer recordState;
    /**
     * 发布渠道
     */
    private String recordSourceName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private SysEmployee employee;

}